import Vuex from 'vuex'
import Vue from 'vue'
Vue.use(Vuex)
import login from '@/store/login/login.js'
import petModule from '@/store/pet/pet.js'
export default new Vuex.Store({
	actions: {
		async getInitialDataAction({ commit }) {
			// 1.请求宠物列表
			
		}
	},
	modules: { 
		login,
		petModule
	}
})

export function setupStore() {
  store.dispatch('login/loadLocalLogin')
  // store.dispatch('getInitialDataAction')
}

export function useStore() {
	return useVuexStore()
}

// export default store



